<script>
export default {
  name: "Page2",
  data(){
    return {
      age: '' //姓名
    }
  },
  mounted() {
    //从路由参数中获得参数
    this.age = this.$route.query.age;
  }
}
</script>

<template>
  <div>
    这是Page2{{age}}
  </div>
</template>

<style scoped>

</style>